import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	enroll_list: apix + '/apm/enroll/list',
	enroll_export: apix + '/apm/enroll/export',
	apm_enroll: apix + '/apm/enroll',
	// apm_enroll: apix + '/apm/enroll',
	apm_enrollIds: apix + '/apm/enroll/',
	apm_participation: apix + '/apm/participation'
}

//查询人才活动登记
export function enrollList(page) {
	return request.get(api.enroll_list, {
		...page
	})
}
//导出人才活动登记
export function enrollExport(obj) {
	return request.post(api.enroll_export, {
		...obj
	})
}
//获取人才活动登记与信息
export function enrollId(id) {
	return request.get(api.apm_enrollIds + id)
}
//新增打卡
export function addenroll(obj) {
	return request.post(api.apm_enroll, {
		...obj
	})
}
//新增活动登记
export function apmParticipation(obj) {
	return request.post(api.apm_participation, {
		...obj
	})
}
//修改活动登记
export function putenroll(obj) {
	return request.put(api.apm_enroll, {
		...obj
	})
}
//删除活动登记
export function delenroll(id) {
	return request.delete(api.apm_enrollIds + id)
}